package DBLayer;

import ModelLayer.*;
import java.util.ArrayList;

public interface IFDBCustomer 
{
    //get all customers
    public ArrayList<Customer> getAllCustomers(boolean retrieveAssociation);
   
    //find customer by name
    public Customer getCustomerByName(String name, boolean retrieveAssociation);
    
    //find customer by ID
    public Customer getCustomerByID(int id, boolean retrieveAssociation);
    
    //insert new Customer
    public int insertCustomer(Customer cust) throws Exception;
    
    //update informations for one Customer
    public int updateCustomer(Customer cust);
    
    //delete Customer by Id    
    public int deleteCustomer(int id);
}